/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.latesis.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 *
 * @author user
 */
@Entity
@Table(name = "TBL_DETALLE_TARIFA")
public class DetalleTarifaBean {
    
    private Long id;    
    private TarifaBean tarifa;    
    private String descripcion;        
    private Double monto;    

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Long getId() {
        return id;
    }

    @ManyToOne(optional = false, fetch = FetchType.LAZY)
    @JoinColumn(name="tarifaId")
    public TarifaBean getTarifa() {
        return tarifa;
    }

    @Column(name = "descripcion", nullable = true, length = 30)
    public String getDescripcion() {
        return descripcion;
    }

    @Column(name = "monto", nullable = false)
    public Double getMonto() {
        return monto;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setTarifa(TarifaBean tarifa) {
        this.tarifa = tarifa;
    }

    public void setDescripcion(String descripcion) {
        this.descripcion = descripcion;
    }

    public void setMonto(Double monto) {
        this.monto = monto;
    }
    
}
